package com.qfedu.meidijiaju.controller;


import com.qfedu.meidijiaju.common.ResponseData;
import com.qfedu.meidijiaju.entity.ShipuYxy;
import com.qfedu.meidijiaju.entity.ShiputypeYxy;
import com.qfedu.meidijiaju.service.ShiputypeYxyService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 食谱类型 前端控制器
 * </p>
 *
 * @author meidimeiju
 * @since 2022-10-05
 */
@Api(tags = "食谱分类")
@RestController
@RequestMapping("/meidijiaju/shiputype-yxy")
public class ShiputypeYxyController {

    @Autowired
    private ShiputypeYxyService shiputypeYxyService;

    @ApiOperation(value = "/根据食谱大分类查看小分类及小分类下的食谱")
    @ApiImplicitParams({
            @ApiImplicitParam(name = "shiputypeId",value = "大分类id",paramType = "query",dataType = "int")
    })
    @RequestMapping(value = "/queryShuPuTypeId",method = RequestMethod.GET)
    public ResponseData<ShiputypeYxy> queryShuPuTypeId(int shiputypeId){

        return shiputypeYxyService.queryShuPuTypeId(shiputypeId);
    }



}

